﻿using Newtonsoft.Json.Linq;
using System.Collections.Generic;

namespace SUNRPA.BROWSER.BRIDGE.domain {
    public enum CommunicationCode{ 
        OK = 1,
        ERROR = -1
    }
    public struct NamePipeRequest { 
        //请求的方法
        public string method { get; set;}
        //请求的参数
        public Dictionary<string, object> requestData { get; set;} 
    }

    public struct BridgeResponse { 
        public CommunicationCode code { get; set;}

        public string msg { get; set;}

        public object result { get; set;}
    }

    public struct BrowserRequest { 
    
        public string method { get; set;}
        //请求的参数
        public Dictionary<string, object> param { get; set;} 
        public string script { get; set;}

    }
}
